import request from  '@/api/backend/requests/user'
import user_const from '@/constant/user/user'
const login=(code)=>{
   return request.get({url:"/member_user/login",data:{code},loadingText:"正在登陆..."}).then(res=>{
       wx.setStorageSync(user_const.USER_LOGIN_RESULT, res.data)
       return res
   })
}

export default {
    login
}